<!DOCTYPE html>
<html lang="zh-CN" ng-app="app">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title>后台</title>
    <style>

    </style>
    <link href="../bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="../bootstrap-3.3.7-dist/css/sm-extend.min.css" rel="stylesheet">
    <link href="../bootstrap-3.3.7-dist/css/index.css" rel="stylesheet">

</head>

<body ng-controller="checkboxApp" ng-cloak class="ng-cloak" ng-init="getGroupInfo()">
<div class="panel-group">
    <div class="panel panel-primary">


        <div class="panel-heading">
            团购商城后台管理——商品审核
        </div>


        <div class="panel-body">
            <div class="list-op">
                <button type="button" class="btn btn-default btn-sm" ng-click="senddata()">
                    <span class="glyphicon glyphicon-ok" aria-hidden="true"></span>审核同意
                </button>
                <!--<button type="button" class="btn btn-default btn-sm">
                    <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>修改
                </button>  -->
                <button type="button" class="btn btn-default btn-sm" ng-click="wei()">
                    <span class="glyphicon glyphicon-remove"  aria-hidden="true"></span>审核不同意
                </button>
            </div>
        </div>
        <table class="table table-bordered table-hover">
            <thead>
            <tr class="success">
                <th><label ng-click="allcheck()">
                    <input type="checkbox" name="checkAll" class="checkboxAll" ng-model="all" ng-checked="a||b"/>
                    <span>全选</span>
                </label>
                    <label ng-click="opposecheck()">
                        <input type="checkbox" name="zcheckAll" class="ReverseSelection" ng-model="fall"
                               ng-checked="a||b"/>
                        <span>反选</span>
                    </label>
                </th>
                <th>团id</th>
                <th>团标题</th>

                <th>团购价格</th>
                <th>查看详情</th>
                <th>是否同意</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="data in   items">
                <td><input ng-checked="data.checked" class="check" ng-model="data.checked" ng-change="check()" ng-true-value="true" ng-false-value="false" type="checkbox" name="checkItem"/></td>
                <td>{{data.groupId}}</td>
                <td>{{data.groupTitle}}</td>

                <td>{{data.groupPrice}}</td>
                <td>
                    <button class="btn btn-default btn-xs" ng-click="chocegroupid(data.groupId)" role="button">查看详情
                    </button>
                </td>
                <td>{{data.sh}}</td>
            </tr>


            </tbody>
        </table>
        <div class="panel-footer">
            <nav>
                <ul class="pagination pagination-sm">
                    <li class="disabled">
                        <a href="#" aria-label="Previous">
                            <span aria-hidden="true">«</span>
                        </a>
                    </li>
                    <li ng-repeat="page in pageList" ng-class="{active: isActivePage(page)}">
                        <a ng-click="selectPage(page)">{{ page }}</a>
                    </li>

                    <li>
                        <a href="#" aria-label="Next">
                            <span aria-hidden="true">»</span>
                        </a>
                    </li>
                </ul>
            </nav>
        </div>
        <!-- end of panel-footer -->
    </div>
    <!-- end of panel -->
</div>
<div class="backall">
    <div class="ss">
        <div class="page-group">
            <div id="page-ptr" class="page">
                <div class="content ">
                    <div id="page-swiper">
                        <div id=''>
                            <div class="swiper-container" data-space-between='10'>
                                <div class="swiper-wrapper">
                                    <div class="swiper-slide"><img ng-src="{{groupdata[0].imgSrc[0]}}"></div>
                                </div>
                                <div class="swiper-slide"><img ng-src="{{getAllGroupTypesfs[0].imgSrc[0]}}"></div>
                                <div class="swiper-pagination yuandian"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <table class="table table-hover">
            <tbody>
            <tr>
                <td colspan="2" width="100">团标题:&nbsp;{{groupdata[0].groupTitle}}</td>
                <td width="100">团id: &nbsp;{{groupdata[0].groupId}}</td>

            </tr>
            <tr>
                <td>团购价格: &nbsp;{{groupdata[0].groupPrice}}</td>

                <td>单人购买价格: &nbsp;{{groupdata[0].groupPriceOriginal}}</td>

            </tr>

            <tr>
                <td>团简介:</td>
                <td colspan="2">{{groupdata[0].groupSynopsis}}</td>

            </tr>
            <tr>
                <td colspan="2">团发团时间: {{groupdata[0].groupInitTime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
                <td></td>
            </tr>
            <tr>
                <td colspan="2">团目标人数: &nbsp;{{groupdata[0].groupTargetNumber}}</td>

                <td>团邮费: &nbsp;{{groupdata[0].groupPostage}}</td>


            </tr>


            </tbody>
        </table>


        <div class="panel-footer">
            <button type="button" class="btn btn-default btn-sm" ng-click="senddataID(groupdata[0].groupId)">
                <span class="glyphicon glyphicon-ok" aria-hidden="true"></span>审核同意
            </button>
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            <button type="button" class="btn btn-default btn-sm" ng-click="wei()">
                <span class="glyphicon glyphicon-remove"  aria-hidden="true"></span>审核不同意
            </button>


        </div>

    </div>
</div>
</body>

<script src="../bootstrap-3.3.7-dist/js/jquery-min.js"></script>
<script src="../bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>

<script src="../bootstrap-3.3.7-dist/js/zepto.min.js"></script>
<script src="../bootstrap-3.3.7-dist/js/sm.js"></script>
<script src="../bootstrap-3.3.7-dist/js/sm-extend.min.js"></script>
<script src="../bootstrap-3.3.7-dist/js/demos.js"></script>
<script src="../bootstrap-3.3.7-dist/js/angular.js"></script>
<script src="../bootstrap-3.3.7-dist/js/controller.js"></script>


</html>  